package cn.huanzi.qch.baseadmin.ecco.json;

public class LinkJson {
    private int source;
    private int target;
    private LinkStyleJson lineStyle;
    private LineLabelJson label;
    private Emphasis emphasis;
    private SelectJson select;

    public LinkJson(int source, int target, LinkStyleJson lineStyle, Emphasis emphasis, SelectJson select) {
        this.source = source;
        this.target = target;
        this.lineStyle = lineStyle;
        this.emphasis = emphasis;
        this.select = select;
    }

    public SelectJson getSelect() {
        return select;
    }

    public void setSelect(SelectJson select) {
        this.select = select;
    }

    public LinkJson(int source, int target, LinkStyleJson lineStyle, Emphasis emphasis) {
        this.source = source;
        this.target = target;
        this.lineStyle = lineStyle;
        this.emphasis = emphasis;
    }

    public Emphasis getEmphasis() {
        return emphasis;
    }

    public void setEmphasis(Emphasis emphasis) {
        this.emphasis = emphasis;
    }

    public LinkJson(int source, int target, LinkStyleJson lineStyle, LineLabelJson label) {
        this.source = source;
        this.target = target;
        this.lineStyle = lineStyle;
        this.label = label;
    }

    public void setLineStyle(LinkStyleJson lineStyle) {
        this.lineStyle = lineStyle;
    }

    public LineLabelJson getLabel() {
        return label;
    }

    public void setLabel(LineLabelJson label) {
        this.label = label;
    }

    public LinkStyleJson getLineStyle() {
        return lineStyle;
    }

    public void setLinkStyle(LinkStyleJson lineStyle) {
        this.lineStyle = lineStyle;
    }

    public LinkJson(int source, int target) {
        this.source = source;
        this.target = target;
    }
    public LinkJson(int source, int target,LinkStyleJson lineStyle) {
        this.source = source;
        this.target = target;
        this.lineStyle=lineStyle;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public int getTarget() {
        return target;
    }

    public void setTarget(int target) {
        this.target = target;
    }
}
